package cn.wolfcode.shopserverorder.mapper;

import cn.wolfcode.order.domain.OrderInfo;
import cn.wolfcode.order.query.QueryObject;

import java.util.List;

public interface OrderInfoMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(OrderInfo record);

    OrderInfo selectByPrimaryKey(Integer orderId);


    int updateByPrimaryKey(OrderInfo record);


    List<OrderInfo> queryForList(QueryObject qo);

    /**
     * 查询尚未进行订单确认的订单
     * @param qo
     * @return
     */
    List<OrderInfo> selectOrderNoVerify(QueryObject qo);

    void changeOrderStatus(Long orderId);

    void changeShippingStatus(Long orderId);

    List selectOrderNoDeliver(QueryObject qo);
}